function getDataInfo(){
	axios.get('/search/getDataInfo')
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	   
	    var respData = response.data;
	    
	   searchApp.tableData = respData;
	   searchApp.pagination.totalCount = respData.length;
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function addDataInfo(){
	axios.post('/search/addDataInfo',{
		name : searchApp.searchform.one,
		description : searchApp.searchform.two,
		dataTime : searchApp.searchform.two
	})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function getDataInfoByID(){
	var rest = '/search/getDataInfoByID/' + searchApp.searchform.one;
	
	axios.get(rest)
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function updateDataInfo(){
	axios.put('/search/updateDataInfo',{
			id : searchApp.searchform.one,
			description : searchApp.searchform.two
		})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}


function page(pageNum){
	axios.post('/search/page',{
		currentPage : pageNum,
		pageSize : searchApp.pagination.pageSize
	})
	  .then(function (response) {
	    console.log(response);
	    console.log(response.data);
	    
	    var respData = response.data;
	 
		searchApp.tableData = respData.list;
		searchApp.pagination.totalCount = respData.totalCount;
	  })
	  .catch(function (error) {
	    console.log(error);
	  });
}